x86: correct default_xen_spec_ctrl calculation
authorJan Beulich <jbeulich@suse.com>
Tue, 29 May 2018 10:38:52 +0000 (12:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 May 2018 10:38:52 +0000 (12:38 +0200)
commitd6239f64713df819278bf048446d3187c6ac4734
tree6331a84c22f5d8c6c3247649a49f666eb348e887
parentb7eb9d8bd61ecdc399e8fc41ea4bbff35cbe0755
x86: correct default_xen_spec_ctrl calculation

Even with opt_msr_sc_{pv,hvm} both false we should set up the variable
as usual, to ensure proper one-time setup during boot and CPU bringup.
This then also brings the code in line with the comment immediately
ahead of the printk() being modified saying "irrespective of guests".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/spec_ctrl.c